/**
 * 2019年2月15日下午1:02:24
 * @author 谢进财
 */
package com.baihang.project.ds.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baihang.framework.controller.BaseController;

/**
 * @author whati
 *
 */
@Controller
@RequestMapping("/common")
public class CommonController extends BaseController {
	private static Logger logger = LoggerFactory.getLogger(CommonController.class);
	@Autowired
	private CommonService service;
	
	@RequestMapping(value = "/getHtmlText", produces = "application/json;charset=UTF-8")
	@ResponseBody
	public String getHtmlText(String name) {
		logger.info(name);
		String result = service.getHtmlText(name);		
		logger.info(result);
		return String.format("{\"result\":\"%s\"}", result);
	}
}
